public class P3_studyfunc
{
	public static void main(String args[])
	{
		int i = 0;	System.out.println(i);
		afunc();	afunc2();//i = afunc2();
		System.out.println(i);
		afunc3(i);
	}
	public static void afunc()//void类型，没有参数
	{
		int i = 1;	System.out.println(i);
	}
	public static int afunc2()//有返回类型的函数必有返回值
	{
		int i = 2;	return i;
	}
	public static void afunc3( int x)//void类型，有参数
	{
		int i = 100; i = x;
		System.out.println(i);
	}
}
